#!/bin/bash
echo "Building DevOps Platform with MSYS2/g++..."

cd /d/vc/devops-platform

rm -rf build-msys2
mkdir build-msys2
cd build-msys2

g++ -O2 -std=c++11 ../src/simple-main.cpp -o devops-platform.exe

if [ $? -eq 0 ]; then
    echo "SUCCESS: Built devops-platform.exe with MSYS2"
    cp devops-platform.exe ../
else
    echo "ERROR: MSYS2 build failed"
fi
